//
//  ST_MsgBannerHeaderCellModel.swift
//  btvideo
//
//  Created by Jason on 2021/9/16.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit
import SwiftyJSON

class ST_MsgBannerHeaderCellModel : NSObject{

    var url : String
    var cover : String
    var createTime : String
    var desc : String
    var id : Int
    var isDel : Int
    var name : String
    var thumb : String
    var type : Int
    var updateTime : String
    var weight : Int

    /**
     * Instantiate the instance using the passed json values to set the properties values
     */
    init(fromJson json: JSON){
        
        url = json["url"].stringValue
        cover = json["cover"].stringValue
        createTime = json["create_time"].stringValue
        desc = json["desc"].stringValue
        id = json["id"].intValue
        isDel = json["is_del"].intValue
        name = json["name"].stringValue
        thumb = json["thumb"].stringValue
        type = json["type"].intValue
        updateTime = json["update_time"].stringValue
        weight = json["weight"].intValue
    }
}


#if PREVIEW
extension ST_MsgBannerHeaderCellModel{
    
    static func createTest() -> ST_MsgBannerHeaderCellModel {
        
        let m = ST_MsgBannerHeaderCellModel(fromJson: JSON.null)
        
        m.thumb = "http://dev-btstatic.jingniaoapps.com/g8q5ccf1631676682"
        
        return m
    }
}
#endif
